package extends08;
/*长方形类*/
public class Rectangle extends Shape{
    //长
    int length;
    //宽
    int width;
    @Override
    public int getPerimeter() {
        return 2*(length+width);
    }

    @Override
    public int getArea() {
        return length*width;
    }
}
